home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- afInitPCMMapping - configure the PCM mapping for an audio track in an
- AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt ttttrrrraaaacccckkkk,,,,
- ddddoooouuuubbbblllleeee ssssllllooooppppeeee,,,, ddddoooouuuubbbblllleeee iiiinnnntttteeeerrrrcccceeeepppptttt,,,,
- ddddoooouuuubbbblllleeee mmmmiiiinnnncccclllliiiipppp,,,, ddddoooouuuubbbblllleeee mmmmaaaaxxxxcccclllliiiipppp))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _s_e_t_u_p expects an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure, previously created by a call to
- aaaaffffNNNNeeeewwwwFFFFiiiilllleeeeSSSSeeeettttuuuupppp(3dm).
-
- _t_r_a_c_k is an integer which identifies an audio track in _s_e_t_u_p.
-
- Since all currently supported file formats contain one audio
- track, the value AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK should always be used here.
-
- _s_l_o_p_e is a positive double-precision floating point value which
- specifies an amplitude scaling factor for the waveform to be
- associated with _t_r_a_c_k.
-
- _i_n_t_e_r_c_e_p_t
- is a positive, negative, or zero double-precision floating point
- value which specifies the sample value which represents the
- vertical midpoint ("zero crossing") of the waveform to be
- associated with _t_r_a_c_k.
-
- _m_i_n_c_l_i_p and _m_a_x_c_l_i_p
- are double-precision floating point values which specify the
- maximum desired negative and positive amplitudes for the waveform
- associated with _t_r_a_c_k. Any values encountered outside the range
- [_m_i_n_c_l_i_p, _m_a_x_c_l_i_p] will be clipped, i.e., set to these values.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg(((()))) configures the PCM mapping for the specified audio
- track in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure. _s_e_t_u_p is passed to aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm)
- when a new audio file is created. See _a_f_I_n_t_r_o(3dm) for a detailed
- description of the PCM mapping technique.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEE
- To configure _s_e_t_u_p for a floating point waveform with a total expected
- amplitude of 100.0 (i.e., values between -100.0 and 100.0) and a
- symmetrical clipping to match, and a 0.0 zero crossing value, the track
- would be initialized with the following:
-
- afInitPCMMapping(setup, AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK, 100.0, 0.0, -100.0, 100.0);
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg((((3333ddddmmmm))))
-
-
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- If this routine is used, it must be called _a_f_t_e_r any calls to
- aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt(((()))). Setting the sample format automatically resets the
- PCM mapping to the default values for the requested format. PCM mapping
- is useful for modifying the values of frames as they are read into or
- written out from a buffer via aaaaffffRRRReeeeaaaaddddFFFFrrrraaaammmmeeeessss(3dm) or aaaaffffWWWWrrrriiiitttteeeeFFFFrrrraaaammmmeeeessss(3dm).
- None of the currently supported file formats have the capability to store
- mapping information, even though the actual mapping can and will be
- applied to the frames stored in those files. Therefor, it is important
- to be careful what values you specify. In general, all two's complement
- and floating point sample formats are expected to be symmetrical about
- zero, i.e., the iiiinnnntttteeeerrrrcccceeeepppptttt will be 0.0 and _m_i_n_c_l_i_p and _m_a_x_c_l_i_p will be
- negative and positive N, where N is some non-zero positive value.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm), aaaaffffNNNNeeeewwwwFFFFiiiilllleeeeSSSSeeeettttuuuupppp(3dm), aaaaffffRRRReeeeaaaaddddFFFFrrrraaaammmmeeeessss(3dm),
- aaaaffffWWWWrrrriiiitttteeeeFFFFrrrraaaammmmeeeessss(3dm), aaaaffffSSSSeeeettttTTTTrrrraaaacccckkkkPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg(3dm),
- aaaaffffSSSSeeeettttVVVViiiirrrrttttuuuuaaaallllPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg(3dm), aaaaffffGGGGeeeettttVVVViiiirrrrttttuuuuaaaallllPPPPCCCCMMMMMMMMaaaappppppppiiiinnnngggg(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-